﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Security.Permissions;

using Model.Crafters;
using Model.Raw_Materials;

namespace Model.Items.Weapons.Parts
{
    [Serializable]
    public class SwordHilt : Hilt
    {
        protected SwordHilt(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if (info == null)
                throw new System.ArgumentNullException("info");

        }

        public SwordHilt(Crafter crafter, Metal metal, Ornament ornament)
            : base(crafter, metal, ornament)
        {
            
        }

        [SecurityPermission(SecurityAction.LinkDemand,
        Flags = SecurityPermissionFlag.SerializationFormatter)]
        public override void GetObjectData(
        SerializationInfo info, StreamingContext context)
        {
            if (info == null)
                throw new System.ArgumentNullException("info");
            base.GetObjectData(info, context);
        }
    }
}
